/*
 * @FilePath: project.ts
 * @@author: wjj
 * @Date: 2025-10-16 14:57:27
 * @@Description: new js file
 */
import request from '@/utils/request'
enum API {
  APIPREJECT = '/api-project',
  TAPIPREJECT = '/api-project',
}
export const reqGetApiPreject = (
  page: number,
  limit: number,
  keyword: string,
  asc: string,
) =>
  request.get<any, any>(
    API.APIPREJECT +
      `?page=${page}&page_size=${limit}&keyword=${keyword}&asc=${asc}`,
  )

export const reqPostApiPreject = (data: any) =>
  request.post<any, any>(API.APIPREJECT, data)
export const reqPutApiPreject = (data: any) =>
  request.put<any, any>(API.APIPREJECT + `/${data.id}`, data)

export const reqDeleteApiPreject = (id: number) =>
  request.delete<any, any>(API.APIPREJECT + `/${id}`)

export const reqGetOneApiPreject = (id: number) =>
  request.get<any, any>(API.APIPREJECT + `/${id}`)
